<div class="sidebar">
  <ul>
    <li>
      <h4>
        文章分类
      </h4>
      <ul>
        <li>
          <a href="{:url('cms/index/index')}">
            所有分类
          </a>
        </li>
        {volist name="category_list" id="category"}
          <li>
            <a href="{:url('cms/index/index',['cat_id'=>$category['term_id']])}">
              {$category.name}
            </a>
          </li>
        {/volist}
      </ul>
    </li>
    <li>
      <h4>
        标签
      </h4>
      <div class="post_tags">
        {volist name="tag_list" id="tag"}
          <a href="{:url('cms/index/index',['tag_id'=>$tag['term_id']])}">
            {$tag.name}
          </a>
        {/volist}
      </div>
    </li>
  </ul>
</div>